<template>
  <div class="app">
    <h1>App组件</h1>
    <Count/>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";

export default defineComponent({
  name: "App",
});
</script>

<script setup lang="ts">
// 引入组件
import Count from "./components/Count/index.vue";
import {onMounted, ref} from "vue";

const num = ref(-1)
defineExpose({
  num
})
</script>

<style scoped>
.app {
  background-color: pink;
}
</style>
